<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
   
   	<table border="1">
   		 <tr>
    		<th>订单id</th>
    		<th>订单总价</th>
    		<th>下单时间</th>
    		<th>订单详情</th>
    		<th>操作</th>
  		</tr>
   			<c:forEach items="${orders}" var="order">
   				<tr>
   					<td>${order.id}</td>
        			<td>${order.price}</td>
        			<td><fmt:formatDate value="${order.createTime}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
        			<td><a href="order/viewOrderDetails?orderId=${order.id}&status=3">查看</a></td>
        			<td><a href="order/orderDeal?id=${order.id}">发货</a></td>
        		</tr>
			</c:forEach>
	</table>
  </body>
</html>
